import Vue from 'vue'
import App from './App.vue'


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import router from './router/router';
import axios from 'axios';

import dataV from '@jiaminghi/data-view'
Vue.use(dataV)

import adminTop from './components/admin-top'
import adminLeft from './components/admin-left'

Vue.component('adminTop', adminTop)
Vue.component('adminLeft', adminLeft)

Vue.prototype.$axios = axios;
axios.defaults.withCredentials = true
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(dataV)


new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
